package com.lgx.mall.view.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import com.lgx.common.entity.IdGenerator;

/**
 * 页面
 * @author lihui
 *
 */
@Entity
@Table(name="singlepage")
public class SinglePage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6944018360525183673L;

	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator=IdGenerator.SINGLEPAGE_ID_GENERATOR)
	@TableGenerator(
			name = IdGenerator.SINGLEPAGE_ID_GENERATOR,
			table = IdGenerator.GENERATOR_TABLE,
			pkColumnName = IdGenerator.GEN_NAME,
			pkColumnValue = IdGenerator.SINGLEPAGE_ID_GENERATOR,
			valueColumnName = IdGenerator.GEN_VALUE,
			initialValue = 1,
			allocationSize = 1
	)
	private long id;
	
	private String title;
	
	private String description;
	
	private String content;
	
	private String url;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
}
